Release 10.1A: OpenEdge Development:
Progress Dynamics Administration
Creating a dumpconfig.txt file
The dumpconfig.txt file provides the processing directions for the Site Data Dump and Load utilities. This file must exist on the
PROPATHassitedatadump/dumpconfig.txtfor these utilities to work.This file is a dump (
.d) formatted file that can be imported using the ProgressIMPORTstatement to load a table of instructions to follow. The file can contain multiple lines that specify all of the fields listed in Table 5–8.
The following listing shows the default
dumpconfig.txtfile that ships with the utility software:
The first three lines of this file contain the default data needed to dump and load the
gsm_menu_structure_itemtable.Line 1 contains information on the dump program. The Record Type is
"O"for output, indicating that the line contains information about the dump program itself. The Group Number is1, and note that all the first three lines have the same Group Number. This number relates the data file with its corresponding dump and load programs. In other words, a dump program, its corresponding load program, and data files must all have the same Group Number. For the dump program, the Filename field contains the program filename, including its relative path, used to dump the data out.Line 2 contains information on the load program. The Record Type is
"I"for input, indicating that the line contains information about the load program. The Group Number is the same as the group number for the corresponding dump program, and the Filename contains the load program filename, including its relative path.Line 3 contains information about the data file that is the dump file target. The Record Type is
"D"for dump file. The Group Number is the same as for the corresponding dump and load program lines, and the Filename is the name of a file that will be written to and read from the firstsitedatadumpdirectory in thePROPATH. Note that you can associate more than one dump file with a dump and load program group. The Filename field is used as the key to retrieve the file information. During the process of reading thedumpconfig.txtfile, the utilities determine the full path to this file and verify that it is accessible, storing the result in thettDumpFileLocation.cDumpFilePathfield. Because this is a verified path name, allINPUTFROMandOUTPUTTOstatements should use the value of this field to determine the correct file to read from or write to.The next six lines of this file contain dump and load information for the
gsm_object_menu_structureandgsm_toolbar_menu_structure tables.The final line of the file contains a site number record. The Record Type is set to
"S"for site number. The Group Number is0and the Filename is"&S". This line is a special case. If the Group Number is0and the Filename is"&S", the dump utility determines the site number of the currently connected Dynamics Repository and uses that number as the site number for data to be dumped.If you want to specify a specific site number for which to dump and load the data, instead of using
0, set the Group Number to the value of the site number and set the Filename to the empty string (""). The following line causes the dump program to dump all data for site number95:
The default
dumpconfig.txtfile provided in thesrc/dynamics/db/icf/dfddirectory directs these utilities to dump and load data for thegsm_menu_structure_item,gsm_toolbar_menu_structure,andgsm_object_menu_structuretables that were created in a session connected to the current Repository. To make these utilities work, copy thedumpconfig.txtfile to a directory namedsitedatadumpsomewhere in the sessionPROPATHand run the utilities as appropriate.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |